﻿@using System.Configuration
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>@ViewBag.Title</title>	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
	<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
	<link type="text/css" rel="stylesheet" href="@Url.Content("~/Content/forums.css")" />
	<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-2.1.1.min.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/main.js")"></script>
	<script type="text/javascript" src="@Url.Content("~/Scripts/jtip.js")"></script>
	@*<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.cleditor.min.js")"></script>*@
	<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/ie6.css")" media="screen"/><![endif]-->
	@RenderSection("Header", false);
</head>

<body class="inner-page">
<div id="pagewidth">
	<div class="pagewidth-right">
		<div class="pagewidth-left">
			<!--.forums#main start-->
			<div id="main" class="forums">
				<!--header start-->
				<div id="header">
					<!--header-main start-->
					<div class="header-main">
						<!--user-profile start-->
						@if(User.Identity.IsAuthenticated)
						{
							@Html.Partial("_AuthUserBlock");
						}
						else
						{                            
							@Html.Partial("_AnonUserBlock");
						}
						<!--user-profile end-->
						<h1 class="logo"><a href="@Url.Content("~/")">Microsoft Eneta</a></h1>
						<div class="header-txt">
							<p>Lembit! Tee Eneta.ee paremaks – <a class="more-view" href="#">kirjuta meile</a></p>
						</div>
					</div>
					<!--header-main end-||-navigation-box start-->
					@Html.Action("TopMenu", "DynamicMenuMng")
					<!--navigation-box end-->
				</div>
				<!--header end-||-content-area start-->
				<div id="content-area">
					<!--content start-->
					<div id="content"> <span class="content-top">&nbsp;</span>
						<!--content-main start-->
						<div class="content-main">
							<!--content-txt start-->
							<div class="content-txt">
								<!--forums-head start-->
								<div class="forums-head">
									<div class="forums-head-main">
										<h2>
                                        @if(IsSectionDefined("Title"))
                                        {
                                            @RenderSection("Title", false);
                                        }
                                        else
                                        {
                                            <a href="@Url.Action("Index","Forums")">@Resources.EnetaMvc.Forum</a>
                                        }
                                        </h2>
										<!-- Lembit 8.11.2009: ul.small-menu.rss-menu -->
										@RenderSection("TopRssLinks", false)
										<!-- Lembit 8.11.2009: ul.small-menu.rss-menu end -->
									</div>
								</div>

								<!--forums-head end-||-forums table start-->
								<table width="100%" cellspacing="0" cellpadding="4" border="0">
									<tr>
										<td valign="top" style="padding:0" colspan="3" width="100%"><div id="ctl00_PlaceHolderMain_PageContent__ControlWrapper_RichHtmlField" style="display:inline"></div></td>
									</tr>
									<tr>
										<td valign="top" style="padding:0"><table cellpadding="4" cellspacing="0" border="0" width="100%" height="100%">
												<tr>
													<td colspan="3" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0">
															<tr>
																<td id="MSOZoneCell_WebPart" vAlign="top"><table TOPLEVEL border="0" cellpadding="0" cellspacing="0" width="100%">
																		<tr>
																			<td valign="top">
																			<!-- lembit@ux.ee 27.01.2010: div.hslice#eneta-forums for IE8 Web Slice discovery -->
																			<div class="hslice" id="eneta-forums">
																			<!-- lembit@ux.ee 27.01.2010: h2.entry-title for IE8 Web Slice (invisible on page) -->
																			<h2 style="display: none;" class="entry-title">Eneta foorum</h2>
																			<!-- lembit@ux.ee 27.01.2010: link to IE8 Web Slice alternative display source -->
																			<a style="display: none;" href="webslices/forums_webslice_01.html" rel="entry-content"></a>
																			<!-- lembit@ux.ee 27.01.2010: end IE8 Web Slice markup, but NB! note also the closing tag for div.hslice#eneta-forums! -->
																			<div id="WebPart" width="100%" class="ms-WPBody">
																					@RenderBody()
																				</div>
																			<!-- lembit@ux.ee 27.01.2010: end div.hslice for IE8 Web Slice discovery -->
																			</div>
																			</td>
																		</tr>
																	</table></td>
															</tr>
														</table></td>
												</tr>
												<tr>
													<td width="100%" colspan="3" valign="top" style="padding:0"><table cellpadding="4" cellspacing="0" width="100%" height="100%">
															<tr>
																<td valign="top"></td>
																<td valign="top"></td>
															</tr>
														</table></td>
												</tr>
												<tr>
													<td valign="top" height="100%"></td>
													<td valign="top" height="100%"></td>
													<td valign="top" height="100%"></td>
												</tr>
												<tr>
													<td colspan="3" valign="top"></td>
												</tr>
											</table></td>
										<td valign="top" height="100%"></td>
									</tr>
								</table>
								<!--forums table end-||-blogs-menu start-->
								<div class="blogs-menu">
									<ul>
										<li><a href="@Url.Content("~/")">@ConfigurationManager.AppSettings["PortalName"]</a></li>
										<li><a href="@Url.Content("~/forum/")">@Resources.EnetaMvc.Forum</a></li>
									</ul>
									<!-- Lembit 8.11.2009: ul.small-menu.rss-menu -->
									@RenderSection("BottomRssLinks", false)
									<!-- Lembit 8.11.2009: ul.small-menu.rss-menu end -->
								</div>
								<!--blogs-menu end-->
							</div>
							<!--content-txt end-->
						</div>
						<!--content-main end-->
						<span class="content-bottom">&nbsp;</span> </div>
					<!--content end-||-sidebar start-->
					<div id="sidebar">
						@{ Html.RenderPartial("_SidebarUsers"); }
					</div>
					<!--sidebar end-->
				</div>
				<!--content-area end-||-footer-box start-->
				@{ Html.RenderPartial("_Footer"); }
				<!---footer-box end-->
			</div>
			<!--.forums#main end-->
		</div>
	</div>
</div>
</body>
</html>